package org.example.service.impl;

import org.example.domain.Users;
import org.example.mapper.UsersMapper;
import org.example.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersServiceImpl implements UsersService {
    @Autowired
    UsersMapper usersMapper;
    @Override
    public List<Users> list(Users users) {
      List<Users>  list= usersMapper.list(users);
        return list;
    }

    @Override
    public List<Users> UserList() {
        return usersMapper.UserList();
    }

    @Override
    public List<Users> userById(Integer id) {
        return usersMapper.usersById(id);
    }

    @Override
    public List<Users> getUsername(String username) {
        return usersMapper.getUsername(username);
    }
}
